package com.sc.VenusQueryBeta.contract.account.zhuanma;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseFragment;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;
import com.sc.VenusQueryBeta.model.bean.account.zhuanma.ZhuanMaList2;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/11/8.
 */

public interface ZhuanMa02Contract {
    abstract class ZhuanMa02Presenter extends BasePresenter<IZhuanMa02Model,IZhuanMa02View> {
        //加载转码明细数据
        public abstract void getZhuanma2(String serverAddress, String projectName, int serverPort,int clientindex,int start,int limit,
                                         String clientAppmsgnum,String roomonth, String roomyear,int roomid,String currencynameCN);

        //查询币种
        public abstract void  queryCurrencyList(String serverAddress, String projectName, int serverPort);
        /**
         * 加载更多t转码
         */
        public abstract void getMoreZhuanma2(String serverAddress, String projectName, int serverPort,int clientindex,
                                             String clientAppmsgnum,String roomonth, String roomyear,int roomid,String currencynameCN);
    }
    interface IZhuanMa02Model extends IBaseModel {

        //查询币种
        Observable<CurrencyListBean> queryCurrencyList(String serverAddress, String projectName, int serverPort);

        //转码明细
        Observable<ZhuanMaList2> getZhuanma2(String serverAddress, String projectName, int serverPort, int clientindex, int start, int limit,
                                             String clientAppmsgnum, String roomonth, String roomyear, int roomid,String currencynameCN);
    }
    interface IZhuanMa02View extends IBaseFragment{


        void showNetworkError(Throwable throwable);

        /** 显示加载更多错误
         */
        void showLoadMoreError();

        //查询币种列表
        void showqueryCurrencyList(CurrencyListBean currencyListBean);

        /**
         * 显示没有更多数据
         */
        void showNoMoreData();

        /**
         *获转码01數據成功
         * @param zhuanMaList2
         */
        void shoZhuanmaData2Success(ZhuanMaList2 zhuanMaList2);
    }
}
